<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>兑换奖品</title>
    <script src="/public/sp/js/mui.min.js"></script>
    <link href="/public/sp/css/mui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/public/sp/css/style.css" />
    <link rel="stylesheet" href="/public/sp/css/iconfont.css" />
    <link rel="stylesheet" href="/public/sp/css/me.css" />
    <link rel="stylesheet" href="/public/sp/css/shoupiao.css" />
</head>
<body>
	<div class="mui-content dh_content">
	    <div><img src="/public/sp/images/dj_banner.jpg"></div>
	    <div class="duih_top">
		   <div class="jiangj_num">
		    	<div class="bt">实时总奖金</div>
		    	<div class="jjc_num">￥<em>{$config.gold_pool}.00</em>元</div>
		  		<div class="jjc_rens"><em>{$config.gold_people}</em>人平分，还剩<em>{$config.gold_people-$res}</em>个名额。</div>
		   </div>
		    <div class="tips" style="padding-top:15px;">兑奖小提示：集齐所有矿物晶体
		    	 {foreach name="list2" item="jp"}
		    		<em><img alt="{$jp.name}" title="{$jp.name}" style="width: 40px;height: 40px;display: inline;border-radius: 50%;" src="{$jp.thumb}"/></em>X1
		    	{/foreach}获取分享大奖资格,
		    	奖金池每天都在增加,赶快行动吧(兑奖日期{$config.begin_time|substr=0,10})
		    </div>
		    <button     type="button" class="duih_btn">兑换</button>
	    </div>
	     <div class="duih_top">
	   <div style="text-align: center;font-size: 18px;">实物奖品</div>
	   <div class="tips" style="padding-top:15px;">兑奖小提示：实物奖品需要到对应的兑奖点兑换</div>
	   </div>
	    {foreach name="list" item="l"}
	    <div class="duih_jp">
		    <div class="dhjp_conbox"><img src="{$l.thumb}"></div>
		    <div style="text-align: center;padding-top:10px;">{$l.name}</div>
	    </div>
		{/foreach}
	</div>
	
</body>
<script src="/public/static/js/jquery.min.js"></script>
<script src="/public/static/layui/layui.all.js"></script>
<script src="/public/static/js/help.js "></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js "></script>
<script>
	$(".duih_btn").click(function(){
		$(this).attr('disabled',true);
		var id=$(this).data("id");
		$.ajax({
			type:"post",
			url:"/index/jiangpin/ex_dj",
			data:{id:id},
			success:function(data){
				if(data.code==200){
					layer.msg(data.msg,
					{time:2*1000},function() {
					 
					})
				}else{
					layer.msg(data.msg);
				}
			}
		});
	})
</script>
</html>
